package com.zwh.se.concurrency.thread;

public class Test {
    static ThreadLocal t1 = new ThreadLocal();
    static ThreadLocal t2 = new ThreadLocal();
    public static void main(String[] args) throws InterruptedException {

        t1.set("111");
        t2.set("222");
        Thread thread =new Thread(()->{
            System.out.println(t1.get());
            System.out.println(t2.get());
        });
        thread.start();

        System.out.println("main:"+t1.get());
        System.out.println("main:"+t2.get());
    }
}
